if hexo-config('fold.enable')
    .sliding-fold
    details
        display block
        padding 16px
        margin 20px 0
        background var(--bg-color)
        border none 
        border-radius 4px
        box-shadow 1px 2px 5px 0 rgba(0,0,0,.3)
        transition all .6s
        
        &>summary
            cursor pointer
            outline none

        .fold-content
            margin-top 20px

            &>:first-child
                margin-top 0

            &>:last-child
                margin-bottom 0

    if hexo-config('fold.motion')
        .sliding-fold
            &.collapsed
                &>summary:after
                    float right
                    content "+"

                .fold-content
                    max-height 0
                    overflow hidden
                    margin 0
            
            &.expanded
                &>summary:after
                    float right
                    content "-"

                .fold-content
                    max-height 100%
                    overflow hidden

            .fold-content
                transition: all 0.375s
